public class asf {
    public static String myToString(int[] array) {
        String ret = "[";

        for(int i =0;i<3;i++) {
            ret += array[i];
            if(i<3) {
                ret += ",";
            }
        }

        ret += "]";
        return ret;
    }

    public static void main(String[] args) {
        int[] array = {10,20,30};

        String ret = Arrays.toString(array);
        System.out.println(ret);
    }
}
